package com.jy.api.vo.admin.commission;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by lihu on 2017/8/25.
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommissionVo {


    private int totalElements = 0;

    private int totalPages = 0;

    private String employeeName;

    private int productCount = 0;

    private double totalAmount = 0;

    private List<Order> orders = new ArrayList<Order>();

    public CommissionVo(String employeeName) {
        this.employeeName = employeeName;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Order {

        private String id;

        private Date createTime;

        private String code;

        private double commission = 0;

    }

}
